﻿/**
 * WebSocket.js
**/
(function (d)
{
	window.undefined = window.undefined;
	try
	{
		d.write('<' + 'script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></' + 'script>');
		d.write('<' + 'script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></' + 'script>');
	}
	catch (x)
	{
		msgbox(!x.message ? x : x.message);
	}
}).call(this, this.document);
//
function msgbox(t)
{
	if (!arguments.length)
		t = this;
	if (!t)
		return;

	if (!!window.document && !!window.document.getElementById)
	{
		var e = document.getElementById('div-message');
		if (!!e)
		{
			if (e.value != window.undefined)
				e.value = t;
			else
				e.innerHTML = t;
			return;
		}
	}
	if (!window.alert)
		return;

	window.alert(t);
}
